<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<title>ESTORE</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Default Description">
<meta name="keywords" content="Magento, Varien, E-commerce">
<meta name="robots" content="INDEX,FOLLOW">
<script type="text/javascript">
//<![CDATA[
    var BLANK_URL = '';
    var BLANK_IMG = 'images/spacer.gif';
//]]>
</script>
<link rel="stylesheet" type="text/css" href="/css/web2/widgets.css" media="all">
<link rel="stylesheet" type="text/css" href="/css/web2/styles.css" media="all">
<link rel="stylesheet" type="text/css" href="/css/web2/reset.css" media="all">
<link rel="stylesheet" type="text/css" href="/css/web2/boxes.css" media="all">
<link rel="stylesheet" type="text/css" href="/css/web2/menu.css" media="all">
<link rel="stylesheet" type="text/css" href="/css/web2/clears.css" media="all">
<link rel="stylesheet" type="text/css" href="/css/web2/style.css" media="all">
<link rel="stylesheet" type="text/css" href="/css/web2/example-noscript.css" media="all">
<link rel="stylesheet" type="text/css" href="/css/web2/easybanner.css" media="all">
<link rel="stylesheet" type="text/css" href="/css/web2/print.css" media="print">
<script type="text/javascript" src="/js/web2/e6ac52465305192655f7061e3e21ae21.js"></script>
<style type="text/css">
 img, div, input { behavior: url("css/iepngfix.htc") }
 </style>
 <script type="text/javascript">
 var blankImg = 'images/blank.gif';
 </script>
<link rel="stylesheet" type="text/css" href="/css/dropdown.css" />
<link rel="stylesheet" href="/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
<script src="/js/jquery-1.6.1.min.js" type="text/javascript"></script>
<script src="/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function(){
$("ul.subnav").parent().append("<span></span>");
$("ul.topnav li span").click(function() {
$(this).parent().find("ul.subnav").slideDown('fast').show();
$(this).parent().hover(function() {
}, function(){
$(this).parent().find("ul.subnav").slideUp('slow');
});
}).hover(function() {
$(this).addClass("subhover");
}, function(){
$(this).removeClass("subhover");
});
});
</script>
<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
		$("area[rel^='prettyPhoto']").prettyPhoto({autoplay_slideshow: false,slideshow: false,deeplinking: false});
		$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({slideshow:false, autoplay_slideshow: false,deeplinking: false});
		$(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({slideshow:false, autoplay_slideshow: false, hideflash: true,deeplinking: false});
	});
</script>
</head>

<body class=" cms-index-index cms-home">
<?php require_once 'CMS/Language.php';
	$lang = new Language(APPLICATION_PATH . '/widgets/footer');
	if(isset($_SESSION['language']))
	{
		$language_id = $_SESSION['language'];
		$tbLanguage = new Language_Model_Language();
		$name = $tbLanguage->getNameLanguage($language_id);
		$lang->load($name['name']);
	}
	else
		$lang->load('Default');	
		$title		= $lang->get('text_title');	
		$search	= $lang->get('text_search');	
		$btn_go	= $lang->get('text_go');
		$product	= $lang->get('text_product');
		$qa	= $lang->get('text_qa');
		$news	= $lang->get('text_news');
		$error = $lang->get('error_text_go');
		if(isset($_GET['search_value']) && isset($_GET['search_type']))
		{
			$value = $_GET['search_value'];
			$type = $_GET['search_type'];
		}
		else{
			$value = "";
			$type = "";
		}
?>
<div id="wrapper_act">
<div id="wrapper">
<div class="header_act">
<div class="header_site">
<div class="header_middle">	
<div class="logo">
<h1><a href="#"><img src="/images/web2/logo.gif" alt="Magento Commerce"></a> </h1> 	
</div>
<div class="header_middle_right">
<div class="clear_both"><span></span></div>
<script type="text/javascript" charset="utf-8">
							function checksearchinput()
							{
								if($.trim($('#search_value').val())== "<?php echo $search?>")
								{
									alert('<?php echo $error;?>');
									return false;
								}
							}
</script>
<form name="searchForm" action="/search" method="get" onsubmit="return checksearchinput()">
<p class="search" style="margin-top:20px;">
<input type="hidden" value="1" name="show" />
<input id="search_value" name="search_value" type="text" value="<?php if($value=="") echo $search; else echo $value; ?>" class="txt" onclick="if(this.value=='<?php echo $search?>') this.value=''" onblur="if(this.value=='') this.value='<?php echo $search?>'" style="height:24px; margin-left:10px;" />
<select name="search_type" style="float: left;height: 24px;">
<option value="1" <?php if($type==1){?>selected="selected"<?php }?>><?php echo $product;?></option>
<option value="2" <?php if($type==2){?>selected="selected"<?php }?>><?php echo $news;?></option>
<option value="3" <?php if($type==3){?>selected="selected"<?php }?>><?php echo $qa;?></option>
</select>
<input type="submit" class="btn" value="<?php echo $btn_go?>" style="width:28px;height:24px;color:#FF0080;font-size:11px;font-weight:bold;" />
</p>
</form>
<div class="clear_both"><span></span></div>
<div class="currencies">
<div class="language-switcher">
								<?php 
									$front     = Zend_Controller_Front::getInstance();
									$language = $front->getPlugin('Language_Plugin_Init');
									echo $language->content;
								?>
</div>
</div>
<div class="clear_both"><span></span></div>
</div>
<div class="clear_both"><span></span></div>
</div>			
<div class="header_menu">
<div class="header-nav-container">
<div class="header-nav">
<h4 class="no-display">Category Navigation:</h4>
						<?php 
							$menu = $front->getPlugin('Menu_Plugin_Init');
							echo $menu->content;
						?>
</div>
</div>     	
</div>	
</div>					
</div>
<div class="content_act">
<div class="content_site">
<div class="middle-container">
<div class="middle col-2-right-layout">
<div id="main" class="col-main">
<?php echo $this->layout()->content ?>
			
								<?php 
									$widgets = $front->getPlugins();
									$html = array();
									foreach($widgets as $widget)
									{
										if($widget->enable == 1 && $widget->type == "content")
											$html[$widget->order] =  $widget->content;
									}
									
									ksort($html);
									foreach($html as $key=>$value)
										echo $value;
								?>
</div>
<div class="col-right side-col">
							<?php 
								$html = array();
								foreach($widgets as $widget)
								{
									if($widget->enable == 1 && $widget->type == "sidebar")
										$html[$widget->order] =  $widget->content;
								}
								
								ksort($html);
								foreach($html as $key=>$value)
									echo $value;
							?>
</div>
</div>
</div>
</div>
</div>
<div class="footer_act">
<div class="links_barner">
<div class="informational" style="margin-left:60px; margin-top:-5px;">
<br />
				<?php 
					$footer = $front->getPlugin('Footer_Plugin_Init');
					echo $footer->content;
				?>
<br />
<div class="clear_both"><span></span></div>	
</div>			
</div>
</div>	
</div>
</div>
</body></html>